fillType
Type
property
Summary
Define how the image is filled inside the widget.
Syntax
set the fillType of <widget> to {<string>}
get the fillType of <widget>
Description
- Cover: It shows the image as small as possible while still covering the entire Image widget.
- Contain: It shows the image as large as possible while still containing entirely in the Image widget.
- Fit Width: It tries to show the full width of the image, and does not care about the height even if the image gets clipped vertically.
- Fit Height: It tries to show the full height of the image, and does not care about the width even if the image gets clipped horizontally.
- Scale Down: It aligns the image in the center and if required it can also shrink the image(Keeping it proportional) to make it fully visible.
- Fill: It shows the image as the exact size of the Image widget by distorting the image’s aspect ratio.
- None: The image is centered in the widget with its original size.